package com.onedec.page.feign;

import com.onedec.utils.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.xml.transform.Result;

/**
 * 登录接口
 */
@FeignClient("admin")
public interface AdminClient {
    /**
     * 登录
     * @param empUsername
     * @param empPwd
     * @return
     */
    @PostMapping("login")
    public ResponseEntity findBylogin(@RequestParam String empUsername,@RequestParam String empPwd);
    @GetMapping("get")
    public  ResponseEntity findById(@RequestParam int empId);
    /**
     *通过邮箱找回密码
     * @param email
     * @return
     */
    @GetMapping("email")
    public ResponseEntity findByemail(@RequestParam String email, @RequestParam int i);
    /**
     * 修改密码
     * @param empPwd
     * @param empPwd1
     * @return
     */
    @PostMapping("updatePwd")
    public ResponseEntity updatePwd(@RequestParam String empPwd,@RequestParam String empPwd1);
    /**
     * 查询所有用户
     */
    @GetMapping("selectAllEmp")
    public ResponseEntity selectAllEmp();
}
